<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html><head>
<title>filesel</title>
</head><body>
<p>[<a href="mxdoc.htm">mainpage</a>]
[<a href="tags.htm">tags</a>]<br>
<h1><a name="filesel">module: filesel</a></h1><p><b>A file selector</b><p>
This module implements a file selector object.  
(<a href="../include/depui/filesel.h">../include/depui/filesel.h</a>)
<p>
Pressing enter/return in the filename area causes the directory and
    file lists to be refreshed with the new pattern.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>
Clicking on the directory list causes the directory and file
       lists to be refreshed.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>
Clicking on the file list selects a file.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>
Pressing OK causes a MX_FILESEL_OK event to be sent to the
            parent window.  WHen halding this event the parent window can call
            mx_filesel_info() to get the selected filename.  The file selector
            widnow is destroyed afetr the MX_FILESEL_OK event.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)<p>Part of the <a href="depui.htm">depui</a> library.<ul><li>
<a name="MX_FILESEL"><code>MX_FILESEL</code></a>
<p>
<p><b>File selector window</b><p>
This type is a standard DEPUI file selector.  
(<a href="../include/depui/filesel.h">../include/depui/filesel.h</a>)<p></li>
<li>
<a name=" define mx_filesel(id)"><code># define mx_filesel(id)</code></a>
<p>
<p><b>Create a file selector window</b><p>
This macro creates a file selector with the given id number.  
(<a href="../include/depui/filesel.h">../include/depui/filesel.h</a>)<p></li>
<li>
<a name="void mx_filesel_refresh(MX_FILESEL* sel)"><code>void mx_filesel_refresh(MX_FILESEL* sel)</code></a>
<p>
<p><b>Refresh file selector contents</b><p>
This function refreshes the directory and file lists of the file selector.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>Can we add a list of drive letters to the directory list for DOS?  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)<p></li>
<li>
<a name="void mx_filesel_handler(MX_WIN* win)"><code>void mx_filesel_handler(MX_WIN* win)</code></a>
<p>
<p>Pressing enter/return in the filename area causes the directory and
    file lists to be refreshed with the new pattern.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>Clicking on the directory list causes the directory and file
       lists to be refreshed.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>Clicking on the file list selects a file.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>Pressing OK causes a MX_FILESEL_OK event to be sent to the
            parent window.  WHen halding this event the parent window can call
            mx_filesel_info() to get the selected filename.  The file selector
            widnow is destroyed afetr the MX_FILESEL_OK event.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)<p></li>
<li>
<a name="MX_FILESEL* mx_fileselwin(MX_FILESEL* sel, size_t size, MX_HANDLER handler, int theid)"><code>MX_FILESEL* mx_fileselwin(MX_FILESEL* sel, size_t size, MX_HANDLER handler, int theid)</code></a>
<p>
<p><b>Create file selector</b><p>
This function creates a file selector object with a given handler and id number.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>mx_text_set(&sel->_dirs, "dir", -1, 0);  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)
<p>mx_text_set(&sel->_files, "file", -1, 0);  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)

<p>If the len parameter is less than 0 then the path is assumed to be
        zero terminated.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)

<p>!Allow a file selector to accept an existing (the default) or non-existing file  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)

<p>!File selector information
When a file has been selected with a file selector a MX_FILESEL_OK
event is sent to the parent window.  Then this function can be called to 
determine the filename selected.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)

<p>This function should only be called while handling a MX_FILESEL_OK event.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)

<p>The specified id number must match the one of the file selector.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)

<p>The returned filename is zero terminated.  
(<a href="../include/depui/filesel.c">../include/depui/filesel.c</a>)<p></li>
</ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb  4 15:16:27 2007


</body></html>
